import {createRouter, createWebHistory, RouteRecordRaw} from "vue-router";


const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        component: () => import('@/layout/Index.vue'),
        redirect: '/user',
        children: [
            {
                path: '/user',
                name: 'user',
                component: () => import('@/views/user/Index.vue'),
                meta:{title:'客户信息管理'}
            },
        
            {
                path: '/xspq',
                name: 'xspq',
                component: () => import('@/views/xspq/Index.vue'),
                meta:{title:'销售片区管理'}
            },
            {
                path: '/yxry',
                name: 'yxry',
                component: () => import('@/views/yxry/Index.vue'),
                meta:{title:'营销人员管理'}
            },
            {
                path: '/product',
                name: 'product',
                component: () => import('@/views/product/Index.vue'),
                meta:{title:'产品管理'}
            },
            {
                path: '/khlf',
                name: 'khlf',
                component: () => import('@/views/khlf/Index.vue'),
                meta:{title:'客户来访管理'}
            },
            {
                path: '/xsjh',
                name: 'xsjh',
                component: () => import('@/views/xsjh/Index.vue'),
                meta:{title:'销售机会管理'}
            },
            {
                path: '/xsbj',
                name: 'xsbj',
                component: () => import('@/views/xsbj/Index.vue'),
                meta:{title:'销售报价管理'}
            },
            {
                path: '/xsjk',
                name: 'xsjk',
                component: () => import('@/views/xsjk/Index.vue'),
                meta:{title:'销售降库管理'}
            },
            {
                path: '/tb',
                name: 'tb',
                component: () => import('@/views/tb/Index.vue'),
                meta:{title:'投标管理'}
            },
            {
                path: '/ht',
                name: 'ht',
                component: () => import('@/views/ht/Index.vue'),
                meta:{title:'合同管理'}
            },
            {
                path: '/ysz',
                name: 'ysz',
                component: () => import('@/views/ysz/Index.vue'),
                meta:{title:'应收账管理'}
            },
            {
                path: '/sbxx',
                name: 'sbxx',
                component: () => import('@/views/sbxx/Index.vue'),
                meta:{title:'设备信息管理'}
            },
            {
                path: '/shjh',
                name: 'shjh',
                component: () => import('@/views/shjh/Index.vue'),
                meta:{title:'售后计划管理'}
            },
            {
                path: '/shjy',
                name: 'shjy',
                component: () => import('@/views/shjy/Index.vue'),
                meta:{title:'售后经验管理'}
            },
            {
                path: '/qx',
                name: 'qx',
                component: () => import('@/views/qx/Index.vue'),
                meta:{title:'去向管理'}
            },
            {
                path: '/zb',
                name: 'zb',
                component: () => import('@/views/zb/Index.vue'),
                meta:{title:'周报管理'}
            },
        ]
    },
]
const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router;
 



